package com.woody.aggregate.infrastructure.saas.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.woody.aggregate.infrastructure.saas.entity.SaasShopIndustry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SaasShopIndustryMapper extends BaseMapper<SaasShopIndustry> {

    @Select("select max(code) code from saas_shop_industry where parent_code=#{parentCode}")
    Long getMaxCode(Long parentCode);
}
